{% extends 'base.html' %}
{% load crispy_forms_tags %}

{% block title %}我的主页{% endblock %}

{% block content %}
<div class="media">
    <img src="{{ user.profile.avatar.url }}" alt="个人头像" class="rounded mr-4" width="200" height="200">
    <div class="media-body">
        <h2 class="mt-0">{{ user.username }}</h2>
        <p class="text-secondary">{{ user.email }}</p>
        <p><a href="{% url 'invite_friend' %}">邀请好友</a></p>
    </div>
</div>
{% endblock %}
